<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="org.springframework.security.ui.AbstractProcessingFilter"%>
<%@ page import="org.springframework.security.ui.webapp.AuthenticationProcessingFilter"%>
<%@ page import="org.springframework.security.AuthenticationException"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>用户登录</title>
<script type="text/javascript">
    window.history.forward(1);
</script>
</head>
<body onload="document.getElementById('txtUsername').focus();">
<table width="620" border="0" align="center" cellpadding="0" cellspacing="0">
    <tbody>
        <tr>
            <td width="620"><img height="11" src="../images/login_p_img02.gif" width="650" alt="" /></td>
        </tr>
        <tr>
            <td align="center">
            <table width="570" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                    <table cellspacing="0" cellpadding="0" width="570" border="0">
                        <tbody>
                            <tr>
                                <td width="245" height="80" align="center" valign="top"></td>
                                <td align="right" valign="top"><br />
                                &nbsp; <img height="9" src="../images/point07.gif" width="13" border="0" alt="" /><a href="#" onclick="window.external.addFavorite('','土地复垦管理系统')"></a></td>
                            </tr>
                        </tbody>
                    </table>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td><img src="../images/a_te01.gif" width="570" height="3" alt="" /></td>
                </tr>
                <tr>
                    <td align="center">
                    <table width="520" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="123" height="120"><img height="95" src="../images/login_p_img05.gif" width="123" border="0" alt="" /></td>
                            <td align="center">
                            <form action="../<c:url value='j_spring_security_check'/>" method="post">
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td valign="bottom" align="center">
                                        	<div align="left">用户名：</div>
                                        </td>
                                        <td height="25" valign="bottom" align="center">
                                            <div align="left"><input name='j_username' type="text" tabindex="1" maxlength="22" size="17" id="txtUsername" value='<c:if test="${not empty param.login_error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>' /></div>
                                        </td>
                                        <td width="80" rowspan="2" align="right" valign="middle"><img src="../images/login_p_img11.gif" style="cursor: pointer;" onclick="document.forms[0].submit()" /></td>
                                    </tr>
                                    <tr>
                                        <td valign="bottom" align="center">
                                            <div align="left">密&nbsp;&nbsp;码：</div>
                                        </td>
                                        <td valign="bottom" height="25" align="center">
                                            <div align="left"><input name="j_password" type="password" tabindex="2" size="17" maxlength="22" id="txtPass" /></div>
                                        </td>
                                    </tr>
<!--                                    <tr>-->
<!--                                        <td valign="bottom" align="center">-->
<!--                                            <div align="left"><input type="checkbox" name="_spring_security_remember_me" /></div>-->
<!--                                        </td>-->
<!--                                        <td valign="bottom" height="25" align="center">-->
<!--                                            <div align="left">记住登录状态</div>-->
<!--                                        </td>-->
<!--                                    </tr>-->
                                </tbody>
                                <tbody>
                                    <tr>
                                        <td><div align="left"></div></td>
                                        <td><c:if test="${loginState == 'failure'}">
                                                <div style="color: red">登录不成功，请重试。
                                                    <br/>原因: <c:if test="${SPRING_SECURITY_LAST_EXCEPTION.message == 'Bad credentials'}">认证错误</c:if>.
                                                </div>
                                            </c:if>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            </form>
                            </td>
                        </tr>
                    </table>
                    </td>
                </tr>
                <tr>
                    <td bgcolor="#d5d5d5"></td>
                </tr>
                <tr>
                    <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td height="30" align="center">版权所有： 国土资源部耕地保护司 & 国土资源部土地整理中心</td>
                        </tr>
                        <tr>
                            <td height="30" align="center">技术支持： 中国农业大学 中欧农业技术研究中心</td>
                        </tr>
                    </table>
                    </td>
                </tr>
            </table>
            </td>
        </tr>
        <tr>
            <td width="620"><img height="11" src="../images/login_p_img04.gif" width="650" alt="" /></td>
        </tr>
    </tbody>
</table>
</body>
</html>